/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BO;
import BO.Iter.ChiTietNhomBO;
import TableModel.Chitietnhom;
import TableModel.ChitietnhomId;
import DAO.Iter.ChiTietNhomDAO;
import java.util.List;
/**
 *
 * @author vt
 */
public class ChiTietNhomBOImpl implements ChiTietNhomBO {

    private ChiTietNhomDAO ctnDao;
    public ChiTietNhomDAO getCtnDao() {
        return ctnDao;
    }
    public void setCtnDao(ChiTietNhomDAO ctnDao) {
        this.ctnDao = ctnDao;
    }
    @Override
    public List<Chitietnhom> findAll() {
      return  ctnDao.findAll();
    }
    @Override
    public Long add(Chitietnhom a) {
        return ctnDao.add(a);
    }
    @Override
    public void edit(Chitietnhom b) {
       ctnDao.edit(b);
    }

    @Override
    public void delete(Chitietnhom c) {
        ctnDao.delete(c);
    }

    @Override
    public Chitietnhom getByChiTietNhom(String MaSv, String MaNhom) {
        return ctnDao.getByChiTietNhom(MaSv, MaNhom);
    }

    @Override
    public Chitietnhom getByChiTietNhom(ChitietnhomId id) {
        return ctnDao.getByChiTietNhom(id);
    }

    @Override
    public List<String> findAllSinhVien(String MaNhom) {
       return ctnDao.findAllSinhVien(MaNhom);
    }

    @Override
    public List<Chitietnhom> findByMaSV(String MaSV) {
       return ctnDao.findByMaSV(MaSV);
    }

    @Override
    public List<Chitietnhom> findByMaNhom(String maNhom) {
      return ctnDao.findByMaSV(maNhom);
    }
    
}
